function AllReady() {
    const mstform = Ext.getCmp("ReqPM")
    const dgrid = Ext.getCmp("ReqPD")

    let data = {}

    dgrid.store.on('datachanged',function(){
        const rows = dgrid.store
        rows.each(row=>{
            console.log(`row`,row.get("PhidPc"));
            // 先找缓存 
            const temp = data[row.get("PhidPc")]
            if(!temp){
                getProjectInfoByPhid(row.get("PhidPc"),row)
            } else {
                setV(row,temp)
            }
        })
    })

    function setV(row,temp){
        row.set("user_xmscqy", temp.countryid == 1?'1':'2')
        row.set("user_cgdd", `${temp["sheng_name"]}-${temp["city_name"]}-${temp["qvxian_name"]}`)
    }

    // 获取项目信息
    function getProjectInfoByPhid(phid,row){
        if(!phid) return 
        execServer("getProjectInfoByPhid",{phid},(res)=>{
            if(res.count == 0) return 
            const datas = JSON.parse(res.data)[0].extendObjects
            data[datas.phid] = datas
            if(row){
                setV(row,datas)
            }
        })
    }
}